
public class MainDemo2 {

	public static void main(String[] args) {
        System.out.println("同类调用StaticDemo2中的方法"+StaticDemo2.getArea1());
        StaticDemo2 sd=new StaticDemo2();
        System.out.println("通过sd调用getArea"+sd.getArea());
        System.out.println("通过sd调用getArea1"+sd.getArea1());
        System.out.println("通过sd调用getArea2"+sd.getArea2());
	}

}
